public class OddQuery extends PQuery {
    public OddQuery(String varName) { super(varName);  }
    public String toString() { return "OddQuery(" + var + ")"; }  

    public boolean eval(Object x) {
        return (x instanceof Integer) && (((Integer) x).intValue()%2 == 0);
    }    
}  
